/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ntb.models;

import com.ntb.entities.Lands;
import java.util.Iterator;

/**
 *
 * @author AnhTuan
 */
public interface LandsDAO {

    public Iterator getCountList(int year);
    
    public int countAll();
    
    public Iterator<Lands> getList();

    public Iterator<Lands> getList(String landId, String address, int locationId, int planId,
            int areaFrom, int areaTo, int purchasedCostFrom, int purchasedCostTo,
            String purchasedDateFrom, String purchasedDateTo, String status, int page);

    public int getPageCount(String landId, String address, int locationId, int planId,
            int areaFrom, int areaTo, int purchasedCostFrom, int purchasedCostTo,
            String purchasedDateFrom, String purchasedDateTo, String status);

    public Lands getRow(int id);
    
    public boolean checkExist(int landId);

    public int add(Lands object);

    public int update(Lands object);

    public int updateStatus(int landID, String statusCode);

    public int updateOccupancyPermitID(int landID, int occupancyPermitID);

    public int updateBuildingPermitID(int landID, int buildingPermitID);

    public int delete(int id);

    public int deleteIn(String arrayIds);
}
